<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>        
        div{
            /* 给父级添加flex属性 */
            display: flex;
            width: 80%;
            height: 300px;
            background-color: pink;
            /* 复合写法，前面是X轴 后面是Y轴 */
            flex-flow: row wrap;
            
        }
        div span{
            width: 60px;
            /* height: 50px; */
            background-color: blue;
            margin-right: 5px;
            /* flex: 1; */
        }
    </style>
</head>
<body>
    <div>
        <span>1</span>
        <span>2</span>
        <span>3</span>
        <span>4</span>
        <span>5</span>
    </div>    
    </div>    
</body>
</html>